package models

// 翻译表
type MTranslate struct {
	ID        int    `gorm:"type:int(10); primaryKey" json:"id"`
	AsId      int    `gorm:"type:int(10);" json:"as_id"`          //关联id
	AsFrom    string `gorm:"type:varchar(255);" json:"as_from"`   //关联表
	Name      string `gorm:"type:varchar(255);" json:"name"`      //翻译
	Languages string `gorm:"type:varchar(255);" json:"languages"` //语种
	Remarks   string `gorm:"type:varchar(255);" json:"remarks"`   //备注翻译
	CreatedAt int    `gorm:"type:int(10);" json:"created_at"`
	UpdatedAt int    `gorm:"type:int(10);" json:"updated_at"`
}

func (table *MTranslate) TableName() string {
	return "m_translate"
}
